package com.extension.company.view.home.message;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.LinearLayout;

import com.extension.company.admin.R;
import com.extension.company.common.mvc.BaseTitleActivity;
import com.extension.company.view.adapter.MessageDeatialAdapter;

import butterknife.BindView;

/**
 * 作者:zwk
 * 联系方式：497981239@qq.com
 * 时间：on 2019/6/25 21:36
 * 功能：消息中心详情  0  系统通知  1 推广活动  2 物流信息
 */
public class MessageDetailActivity extends BaseTitleActivity {
	@BindView(R.id.message_detail_rcy)
	RecyclerView rcy;
	@BindView(R.id.ll_loading)
	LinearLayout ll;
	private MessageDeatialAdapter adapter;


	@Override
	public int getMainLayout() {
		return R.layout.activity_message_detail;
	}

	@Override
	public void initView() {
		updateSuccessView();

		setTitle("系统消息");

	}

	@Override
	public void initData() {
		int type = getIntent().getIntExtra("id", 0);
		adapter = new MessageDeatialAdapter(this, type);
		rcy.setLayoutManager(new LinearLayoutManager(this));
		rcy.setAdapter(adapter);
	}

	@Override
	public void initListener() {

	}
}
